package com.jie.day2.able2.factory;

import com.jie.day2.able2.enums.HumanEnum;
import com.jie.day2.able2.abs.Human2;

/**
 * 男性创建工厂
 * @author jie
 * @date 2019/12/9 -11:16
 */
public class MaleHumanFactory extends AbstractHumanFactory{
    @Override
    public Human2 createYellowHuman() {
        return super.createHuman(HumanEnum.YellowMaleHuman);
    }

    @Override
    public Human2 createWhiteHuman() {
        return super.createHuman(HumanEnum.WhiteMaleHuman);
    }

    @Override
    public Human2 createBlackHuman() {
        return super.createHuman(HumanEnum.BlackMaleHuman);
    }
}
